﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SetProductionOrder.aspx.cs" Inherits="lcs.Web.SupplyPlanSectionQRC.SetProductionOrder" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
     <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
    <link href="../../css/myStyle.css" rel="stylesheet" />
    <link href="../style.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript">
        function showQRC(id) {

            window.open('../PrintQCR.aspx?id=' + id + "&type=productionOrder", 'newwindow', 'height=600, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no')
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <table cellpadding="0" cellspacing="0" class="style1">
         <tr>
            <td style=" height:15px;">
               
                 生产步骤：<asp:TextBox ID="txt_sectionname" runat="server"></asp:TextBox>
                &nbsp;顺序：<asp:TextBox ID="txt_sectionorder" runat="server"></asp:TextBox>
                 <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txt_sectionorder" Display="Dynamic" ErrorMessage="*请输入正整数" ValidationExpression="^\+?[1-9]\d*$"></asp:RegularExpressionValidator>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_sectionorder" Display="Dynamic" ErrorMessage="*不能为空！"></asp:RequiredFieldValidator>
                &nbsp;<asp:Button ID="btn_sel"  runat="server" Text="添加步骤" OnClick="btn_sel_Click" style="height: 21px"  />
                <asp:Label ID="lbl_supplyPlanId" runat="server" Visible="False"></asp:Label>
             </td>
        </tr>
         <tr>
            <td style=" height:15px; text-align:center;">
                <b>生产步骤列表</b></td>
        </tr>
          <tr>
              <td style=" height:15px; text-align:center;">

              </td>
          </tr>
          <tr>
              <td style=" height:15px; text-align:center;">
                  <asp:GridView ID="GridView1" runat="server" Width="2300px" CssClass="gv" AutoGenerateColumns="False" OnRowCommand="GridView1_RowCommand" PageSize="20">
                     <Columns>
                        <asp:TemplateField HeaderText="选择" Visible="False">
                              <HeaderTemplate>
                            <input id="cbo_checkAll" type="checkbox" onclick="checkall(this)" />全选
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="cbo_check" runat="server" />
                               
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <asp:LinkButton ID="lbn_del" runat="server" 
                                    CommandArgument='<%# Bind("KeyId") %>' CommandName="lbn_del" 
                                    ForeColor="Blue" CausesValidation="false">删除</asp:LinkButton>
                                &nbsp;&nbsp;
                                  <%--<a href="javascript:showQRC(<%# Eval("sectionid") + "|" %>)" style="color: Blue">生成二维码 </a>--%>
                                 <asp:LinkButton ID="lbn_add" runat="server" 
                                    CommandArgument='<%# Bind("sectionid") %>' CommandName="lbn_add" 
                                    ForeColor="Blue" CausesValidation="false">生成二维码</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="sectionname" HeaderText="生产步骤" />
                        <asp:BoundField DataField="sectionid" HeaderText="顺序" />
                        <asp:BoundField DataField="projectName" HeaderText="项目名称" />
                        <asp:BoundField DataField="proid" HeaderText="项目编号" />
                        <asp:BoundField DataField="material" HeaderText="物料描述" />
                        <asp:BoundField DataField="sname" HeaderText="供应商" />
                        <asp:BoundField DataField="supplyDate" DataFormatString="{0:d}" 
                            HeaderText="供货期" />
                        <asp:BoundField DataField="winBid" HeaderText="中标批次" Visible="False" />
                        <asp:BoundField DataField="purchaseid" HeaderText="采购订单号" />
                        <asp:BoundField DataField="sphone" HeaderText="供应商联系电话" />
                    </Columns>
                     <PagerStyle CssClass="mypager" />

                  </asp:GridView>
              </td>
          </tr>
     </table>
       
    </div>
    </form>
</body>
</html>
